<?php if (!defined('THINK_PATH')) exit();?><div class="row">
          <form id="login" class="form-horizontal" action="" method="post" onsubmit="return false;">
          <div class="col-md-12">
            <div class="card">
              <div class="card-header"><h4>采集商品</h4></div>
              <div class="card-body">

     <div class="form-group">
    <label class="col-md-3 control-label" for="example-hf-email">输入url</label>
    <div class="col-md-7">
      <input class="form-control" type="text" name="url"  placeholder="输入url" value="<?php echo ($data["url"]); ?>"></div>
  </div>
  

  <div class="form-group">
    <label class="col-md-3 control-label" for="example-hf-email">备注</label>
    <div class="col-md-7">
      <input class="form-control" type="text" name="con"  placeholder="输入备注"   value="<?php echo ($data["con"]); ?>"></div>
  </div>
  
  <div class="form-group">
    <div class="col-md-9 col-md-offset-3">
     <button class="btn btn-label btn-primary" id="send"><label><i class="mdi mdi-checkbox-marked-circle-outline"></i></label> 确认提交</button></div>
  </div>
  
  </form>
          </div>  
 </div>
 
	

<script type="text/javascript">
  //caiji
  $('#send').click(function(){
  lightyear.loading('show');  // 显示
    $.ajax({
    type: "POST",
    url: "Index/url_post", 
    data:$('#login').serialize(), 
      success: function(data){
	  lightyear.loading('hide');  // 隐藏    
        if(data.indexOf('操作成功')>=0){
		 lightyear.notify('操作成功', 'success', 1000, 'mdi mdi-emoticon-happy', 'top', 'center');
		 setTimeout(function() {
          $.ajax({
          type: "POST",
          url: "/Home/caiji.html",       
              success: function(data){
                      if(data){
							$("#content").html(data);
					  }else{
							alert('页面加载失败或异常,请刷新重试');
					  }
              }
          });
					}, 100);
        }else{
		 lightyear.notify('采集出现问题~', 'danger', 1000);
		}
      }
    });
  });
  
  
  //caiji2
  $('#send2').click(function(){
  lightyear.loading('show');  // 显示
    $.ajax({
    type: "POST",
    url: "Index/url_post2", 
    data:$('#login2').serialize(), 
      success: function(data){
	  lightyear.loading('hide');  // 隐藏    
        if(data.indexOf('操作成功')>=0){
		 lightyear.notify('操作成功', 'success', 1000, 'mdi mdi-emoticon-happy', 'top', 'center');
		 setTimeout(function() {
          $.ajax({
          type: "POST",
          url: "/Home/caiji.html",       
              success: function(data){
                      if(data){
							$("#content").html(data);
					  }else{
							alert('页面加载失败或异常,请刷新重试');
					  }
              }
          });
					}, 1000);
        }else{
		 lightyear.notify('采集出现问题~', 'danger', 1000);
		}
      }
    });
  });

</script>